package fun.ipconfig.utils;

import net.sf.cglib.proxy.Enhancer;

@SuppressWarnings("all")
public class CglibTools<T> {
    public T getObject(Class<T> cls) {
        Enhancer enhancer = new Enhancer();
        enhancer.setSuperclass(cls);
        enhancer.setCallback(new Interceptor());
        return (T) enhancer.create();
    }
}
